package com.shawbs.vueblog.comom;

public enum ErrorCode {
    UNKNOWN_ERROR(500,"未知异常"),
    PARAM_ERROR(400,"参数错误"),
    USER_NONE_ERROR(1001,"用户不存在"),
    PASSWORD_ERROR(1002,"密码错误");


    private int code;
    private String msg;

    ErrorCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
